import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { VisitService } from './visit.service';
import { CreateVisitDto } from './dto/create-visit.dto';
import { UpdateVisitDto } from './dto/update-visit.dto';

@Controller('visit')
export class VisitController {
  constructor(private readonly visitService: VisitService) {
  }
  @Get('count')
  async visitCount() {
    return await this.visitService.visitCount()
  }

  @Get('list')
  async visitList() {
    return await this.visitService.visitList()
  }
}
